<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        //第一题
        function fn(num){
				while(true){
					if(num%2==0){
						num = num/2;
					}else if(num%3==0){
						num = num/3;
					}else if(num%5==0){
						num = num/5;
					}else{
						return false;
					}
					if(num==1){
						return true;
					}
				}
			}

        console.log(fn(15));
        //第三题
        function fn4(num) {
            return Number(num.toString(8));
        }
        console.log(fn4(24))
    </script>
</body>

</html>